package com.weishaoying.example.base.el;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author WeiShaoying
 * @date 2018/4/4
 */
public class Main {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(Config.class);
        //配置文件当然也是Spring的一个Bean
        Config bean = context.getBean(Config.class);
        bean.outputResource();
        context.close();
    }
}
